package cn.shlbysj.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class NewsInfo {
    private String id;

    private String type;

    private String title;

    private String shortMsg;

    private String author;

    private Integer visiteCount;

    @JsonFormat(pattern="yyyy-MM-dd")
    private Date createTime;

    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getShortMsg() {
        return shortMsg;
    }

    public void setShortMsg(String shortMsg) {
        this.shortMsg = shortMsg == null ? null : shortMsg.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public Integer getVisiteCount() {
        return visiteCount;
    }

    public void setVisiteCount(Integer visiteCount) {
        this.visiteCount = visiteCount;
    }
    @JsonFormat(pattern="yyyy-MM-dd")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}